package com.legal.aid.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.legal.aid.common.annotation.Excel;
import com.legal.aid.common.core.domain.BaseEntity;

/**
 * 订单对象 z_order
 *
 * @author ruoyi
 * @date 2025-05-27
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long id;

    /** 用户ID */
    private Long userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 订单状态(0待支付 1已支付 2已取消) */
    @Excel(name = "订单状态(0待支付 1已支付 2已取消)")
    private String orderStatus;

    /** 案件标题 */
    @Excel(name = "案件标题")
    private String caseTitle;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 用户手机号 */
    @Excel(name = "用户手机号")
    private String phone;

    /** 用户联系地址 */
    @Excel(name = "用户联系地址")
    private String address;

    /** 订单价格 */
    @Excel(name = "订单价格")
    private BigDecimal price;

    /** 律师Id */
    @Excel(name = "律师Id")
    private String lawyerId;

    /** 是否删除(0否1是) */
    private String isDeleted;

    /** 创建人 */
    private String createdBy;

    /** 修改人 */
    private String updatedBy;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setOrderNo(String orderNo)
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo()
    {
        return orderNo;
    }

    public void setOrderStatus(String orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus()
    {
        return orderStatus;
    }

    public void setCaseTitle(String caseTitle)
    {
        this.caseTitle = caseTitle;
    }

    public String getCaseTitle()
    {
        return caseTitle;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }

    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }

    public String getLawyerId() {
        return lawyerId;
    }

    public void setLawyerId(String lawyerId) {
        this.lawyerId = lawyerId;
    }

    public void setIsDeleted(String isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public String getIsDeleted()
    {
        return isDeleted;
    }

    public void setCreatedBy(String createdBy)
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy()
    {
        return createdBy;
    }

    public void setUpdatedBy(String updatedBy)
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy()
    {
        return updatedBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("orderNo", getOrderNo())
                .append("orderStatus", getOrderStatus())
                .append("caseTitle", getCaseTitle())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("userName", getUserName())
                .append("phone", getPhone())
                .append("address", getAddress())
                .append("price", getPrice())
                .append("lawyerId", getLawyerId())
                .append("isDeleted", getIsDeleted())
                .append("createdBy", getCreatedBy())
                .append("updatedBy", getUpdatedBy())
                .toString();
    }
}
